#
# pH+ Tag Class
#

#require 'ph/ui/object'
require 'ph/ui/collection'

module Ph
  
  class Tag 
    
    attr_reader :properties
    attr_reader :tag, :id

		@@count = 0
        
    def initialize(tag='input')  
      @properties = Ph::Collection.new 
			@@count = @@count + 1
			@id = @@count.to_s
      @tag = tag
    end
    
		# TODO Fix this to include HTML and XHTML
    def to_s
      "<#@tag#{@properties.to_s}/>\n"
    end 
  
  
  end

end
